package io.renren.modules.substation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.substation.entity.*;

import java.util.List;
import java.util.Map;

/**
 * 设备当前状态表
 *
 * @author yzx
 * @email sunlightcs@gmail.com
 * @date 2020-06-20 11:20:38
 */
public interface TBusiDevStatusInfoService extends IService<TBusiDevStatusInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    long queryDevShowInfoListCount(TBusiDevStatusShowInfo tBusiDevStatusShowInfo);
    List<TBusiDevStatusShowInfo> queryDevShowInfoList(TBusiDevStatusShowInfo tBusiDevStatusShowInfo);

    List<DevDetailInfo> queryDevDetailInfoByCondition(DevDetailInfo devDetailInfo);

    int countAllDevNum();

    int countErrorDevNum();

    int updateByCode(TBusiDevStatusInfoEntity tBusiDevStatusInfoEntity);

    int countAllDevNumBySta(Map<String, Object> params);

    int countOfflineDevNumBySta(Map<String, Object> params);

    int updateDevStatusInfoByCode (TBusiDevStatusInfoEntity tBusiDevStatusInfoEntity);

    int updateDevHealthStatus(String devCode, String status);

    List<TBusiDevAutoReportSumInfo> queryAutoReportSumList(TBusiDevAutoReportSumInfo sum_query);

    List<TBusiDevAutoReportInfo> queryPdAutoReportList(TBusiDevAutoReportInfo jf_query);

    int countAllDevNumByArea(String subAreaStr);

    int countOfflineDevNumByArea(String subAreaStr);

    List<TBusiDevStatusInfoEntity> countAllDevNumGroup();

    List<TBusiDevStatusInfoEntity> countOfflineDevNumGroup();

    String getAreaChildList(Map<String, Object> params);
}

